//base
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
//less
import './index.less'

class SwitchCommon extends Component {
  componentWillMount() {
    //onLoad
  }

  componentDidMount() {
    //onready
  }

  componentWillUnmount() {
    //onUnload
  }

  componentWillReceiveProps(nextprops) {}

  render() {
    const { checked, onChange } = this.props
    return (
      <View className={`SwitchCommon_id03535 ${checked ? 'checked' : ''}`} onClick={onChange} />
    )
  }
}

export default SwitchCommon
